package com.example.bbs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("message")
public class Message implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)//这个value指的是表的value =
    private Integer id;//文章id

    private String topic;//文章标题
    private String content;//文章内容
    private String createTime;//创建时间
    private String username;//创建人
}
